Merge extended XML documentation. - #389
Conversation
- Added significant amounts of documentation to RestClient, channel and message types, and more. - Added some missing / newly-added properties and JSON objects. - Renamed certain flag values for more consistent styling. - Obsoleted certain deprecated properties. - Added some missing flags.
|
The documentation preview is available at https://preview.netcord.dev/389. |
KubaZ2
left a comment
There was a problem hiding this comment.
Thanks for this huge PR! For now I reviewed everything up to UserActivityFlags.
| public int Slowmode => _jsonModel.Slowmode.GetValueOrDefault(); | ||
|
|
||
| /// <summary> | ||
| /// The ID of the channel's parent category. |
There was a problem hiding this comment.
@Red-K0, why was this resolved?
| /// The ID of the channel's parent category. | |
| /// The ID of the channel's parent channel. |
| public static ImageUrl ApplicationIcon(ulong applicationId, string iconHash, ImageFormat format) | ||
| { | ||
| return new($"/app-icons/{applicationId}/{iconHash}", GetFormat(format)); | ||
| return new($"/application-icons/{applicationId}/{iconHash}", GetFormat(format)); |
There was a problem hiding this comment.
I believe app-icons was correct
https://docs.discord.com/developers/reference#image-formatting
| public static ImageUrl ApplicationCover(ulong applicationId, string coverHash, ImageFormat format) | ||
| { | ||
| return new($"/app-icons/{applicationId}/{coverHash}", GetFormat(format)); | ||
| return new($"/application-icons/{applicationId}/{coverHash}", GetFormat(format)); |
| namespace NetCord; | ||
|
|
||
| /// <summary> | ||
| /// Contains resolved information for an interaction's auto-populated selection menus. |
There was a problem hiding this comment.
It is not only for selection menus. It is used for basically all interactions.
Maybe something like this?
| /// Contains resolved information for an interaction's auto-populated selection menus. | |
| /// Contains resolved information for an interaction. |
|
|
||
| /// <summary> | ||
| /// Count of super reactions. | ||
| /// The number of applied ssuper reactions. |
There was a problem hiding this comment.
| /// The number of applied ssuper reactions. | |
| /// The number of applied super reactions. |
| JsonModels.JsonEmoji IJsonModel<JsonModels.JsonEmoji>.JsonModel => jsonModel; | ||
|
|
||
| /// <summary> | ||
| /// <inheritdoc cref="CustomEmoji.Id"/> Can be <see langword="null"/> for standard emoji. |
There was a problem hiding this comment.
I believe it will always be null for standard emoji, currently it isn't that clear.
| /// <inheritdoc cref="CustomEmoji.Id"/> Can be <see langword="null"/> for standard emoji. | |
| /// <inheritdoc cref="CustomEmoji.Id"/> <see langword="null"/> for standard emoji. |
| /// <summary> | ||
| /// Gets the <see cref="ImageUrl"/> of the team's icon. | ||
| /// </summary> | ||
| /// <param name="format">The format of the returned <see cref="ImageUrl"/>. Defaults to <see cref="ImageFormat.Png"/> (or <see cref="ImageFormat.Gif"/> for animated icons).</param> |
There was a problem hiding this comment.
It doesn't default to anything, it is a required parameter
| /// Gets the <see cref="ImageUrl"/> of the team's icon. | ||
| /// </summary> | ||
| /// <param name="format">The format of the returned <see cref="ImageUrl"/>. Defaults to <see cref="ImageFormat.Png"/> (or <see cref="ImageFormat.Gif"/> for animated icons).</param> | ||
| /// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the user does not have one set, returns <see langword="null"/>.</returns> |
There was a problem hiding this comment.
| /// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the user does not have one set, returns <see langword="null"/>.</returns> | |
| /// <returns>An <see cref="ImageUrl"/> pointing to the team's icon. If the team does not have one set, returns <see langword="null"/>.</returns> |
| public ulong ThreadId => jsonModel.ThreadId; | ||
|
|
||
| /// <summary> | ||
| /// The timetstamp at which the user last joined the thread. |
There was a problem hiding this comment.
| /// The timetstamp at which the user last joined the thread. | |
| /// The timestamp at which the user last joined the thread. |
No description provided.